package com.lxk.mall.pms.domain.bo.property;

import com.lxk.mall.pms.domain.PmsProductPropertyValue;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 商品属性值业务对象 pms_product_property_value
 *
 * @author Lion Li
 * @date 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmsProductPropertyValue.class, reverseConvertGenerate = false)
public class PmsProductPropertyValueBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商户id
     */
    private Long merId;

    /**
     * 属性项的编号
     */
    @NotNull(message = "属性项的编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long propertyId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = {EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    private String remark;


}
